//
//  AudioBookCollectionViewCell.m
//  FunRead
//
//  Created by  King on 15/5/26.
//  Copyright (c) 2015年 华东伟. All rights reserved.
//

#import "AudioBookCollectionViewCell.h"

@implementation AudioBookCollectionViewCell
- (void)dealloc
{
    [_coverImageView release];
    [_nameLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.contentView.backgroundColor = [UIColor colorWithWhite:0.6 alpha:0.3];
        self.coverImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.contentView.frame.size.width / 3.0, self.contentView.frame.size.height)];
        [self.contentView addSubview:_coverImageView];
        [_coverImageView release];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake((self.contentView.frame.size.width /3.0) + (self.contentView.frame.size.width / 3.0 * 2.0 - 80) / 2,(self.contentView.frame.size.height - 30) / 2.0,  80, 30)];
        _nameLabel.textAlignment = 1;
        [self.contentView addSubview:_nameLabel];
        [_nameLabel release];
    }
    return self;
}


@end
